package com.applet.message.controller;


import com.applet.message.client.TestFeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/test")
public class TestController {

    @Resource
    private TestFeignClient testFeignClient;

    @GetMapping(value = "/ratelimit")
    public String addGoodsInfo() {
        String s = testFeignClient.testFeign();
        return s;
    }
}
